﻿
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
namespace WinnerCMS.Model
{
    [DataContract]
    public partial class Vote
    {
        public Vote()
        {
            VoteChoices = new List<VoteChoice>();
            this.CheckInTime = DateTime.Now;
        }

        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public string Title { get; set; }
        [DataMember]
        public bool Pass { get; set; }
        [DataMember]
        public string VoteType { get; set; }
        [DataMember]
        public string PicUrl { get; set; }
        [DataMember]
        public System.DateTime? EndData { get; set; }
        [DataMember]
        public string Windowsize { get; set; }
        [DataMember]
        public string TemplateFileName { get; set; }
        [DataMember]
        public bool LimitIP { get; set; }
        [DataMember]
        public System.DateTime CheckInTime { get; set; }
        [DataMember]
        public virtual ICollection<VoteChoice> VoteChoices { get; set; }
    }
}